POV-Ray : Newsgroups : povray.general : macro - without () : Re: macro - without () Server Time
5 Aug 2024 16:13:12 EDT (-0400)
  Re: macro - without ()  
From: Jellby
Date: 3 Oct 2002 15:50:16
Message: <3d9c9f77@news.povray.org>
Rafal 'Raf256' Maj wrote:

> "Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote in
> news:Xns### [at] 204213191226
> 
>> Would it be a big problem to allow syntax  :
> [...]
> 
> and another request, in connection with previous post - keyword ignore
> that can be added to any object. It will 'kill' the object.
> 
> Why ?
> Simple - it's very usefull while i.e. 'debugging' scene - if I have object
> long at 100 lines like :
> difference { ... union { ... } merge { ... union { ... }
>   ...
>   ignore
> }
> addning / removing "ignore" is much faster then commenting all 100 lines
> or
> putting them into  #if (0) ... #end
> 
> 
> Why connection with no "()" macros ? because creating ignore keyword can
> be done in POV already :
>   #macro ignore() translate 1e50 #end
>   (this will work for most objects)
> But it must be used as :
>   object { ... ignore() }   instead of :
>   object { ... ignore }
> (without no-()-macros syntax)
> 
> 

What about scale 0 (or 1e-50)? Is this prohibited? does this give errors? It 
maybe wouldn't work with infinite objects, but it might be useful.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.